home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / alerts / nsIAlertsService.h
C/C++ Source or Header  |  2006-05-08  |  4KB  |  94 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIAlertsService.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIAlertsService_h__
  6. #define __gen_nsIAlertsService_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsIObserver_h__
  14. #include "nsIObserver.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21.  
  22. /* starting interface:    nsIAlertsService */
  23. #define NS_IALERTSSERVICE_IID_STR "647248fd-f925-4e30-93dd-cde26d7e3a90"
  24.  
  25. #define NS_IALERTSSERVICE_IID \
  26.   {0x647248fd, 0xf925, 0x4e30, \
  27.     { 0x93, 0xdd, 0xcd, 0xe2, 0x6d, 0x7e, 0x3a, 0x90 }}
  28.  
  29. class NS_NO_VTABLE nsIAlertsService : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IALERTSSERVICE_IID)
  33.  
  34.   /* void showAlertNotification (in AString aImageUrl, in AString aAlertTitle, in AString aAlertText, in boolean alertTextClickable, in AString aAlertCookie, in nsIObserver aAlertListener); */
  35.   NS_IMETHOD ShowAlertNotification(const nsAString & aImageUrl, const nsAString & aAlertTitle, const nsAString & aAlertText, PRBool alertTextClickable, const nsAString & aAlertCookie, nsIObserver *aAlertListener) = 0;
  36.  
  37. };
  38.  
  39. /* Use this macro when declaring classes that implement this interface. */
  40. #define NS_DECL_NSIALERTSSERVICE \
  41.   NS_IMETHOD ShowAlertNotification(const nsAString & aImageUrl, const nsAString & aAlertTitle, const nsAString & aAlertText, PRBool alertTextClickable, const nsAString & aAlertCookie, nsIObserver *aAlertListener); 
  42.  
  43. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  44. #define NS_FORWARD_NSIALERTSSERVICE(_to) \
  45.   NS_IMETHOD ShowAlertNotification(const nsAString & aImageUrl, const nsAString & aAlertTitle, const nsAString & aAlertText, PRBool alertTextClickable, const nsAString & aAlertCookie, nsIObserver *aAlertListener) { return _to ShowAlertNotification(aImageUrl, aAlertTitle, aAlertText, alertTextClickable, aAlertCookie, aAlertListener); } 
  46.  
  47. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  48. #define NS_FORWARD_SAFE_NSIALERTSSERVICE(_to) \
  49.   NS_IMETHOD ShowAlertNotification(const nsAString & aImageUrl, const nsAString & aAlertTitle, const nsAString & aAlertText, PRBool alertTextClickable, const nsAString & aAlertCookie, nsIObserver *aAlertListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowAlertNotification(aImageUrl, aAlertTitle, aAlertText, alertTextClickable, aAlertCookie, aAlertListener); } 
  50.  
  51. #if 0
  52. /* Use the code below as a template for the implementation class for this interface. */
  53.  
  54. /* Header file */
  55. class nsAlertsService : public nsIAlertsService
  56. {
  57. public:
  58.   NS_DECL_ISUPPORTS
  59.   NS_DECL_NSIALERTSSERVICE
  60.  
  61.   nsAlertsService();
  62.  
  63. private:
  64.   ~nsAlertsService();
  65.  
  66. protected:
  67.   /* additional members */
  68. };
  69.  
  70. /* Implementation file */
  71. NS_IMPL_ISUPPORTS1(nsAlertsService, nsIAlertsService)
  72.  
  73. nsAlertsService::nsAlertsService()
  74. {
  75.   /* member initializers and constructor code */
  76. }
  77.  
  78. nsAlertsService::~nsAlertsService()
  79. {
  80.   /* destructor code */
  81. }
  82.  
  83. /* void showAlertNotification (in AString aImageUrl, in AString aAlertTitle, in AString aAlertText, in boolean alertTextClickable, in AString aAlertCookie, in nsIObserver aAlertListener); */
  84. NS_IMETHODIMP nsAlertsService::ShowAlertNotification(const nsAString & aImageUrl, const nsAString & aAlertTitle, const nsAString & aAlertText, PRBool alertTextClickable, const nsAString & aAlertCookie, nsIObserver *aAlertListener)
  85. {
  86.     return NS_ERROR_NOT_IMPLEMENTED;
  87. }
  88.  
  89. /* End of implementation class template. */
  90. #endif
  91.  
  92.  
  93. #endif /* __gen_nsIAlertsService_h__ */
  94.